SrcFile=thread_server.c thread_worker.c socket_connect.c c_conn_mysql.c parser_json.c cJSON.c
CFLAGS=-I ../include
CFLAGS+=-I ../lib/cjson/include/cjson/ 
CFLAGS+=-I /usr/local/mysql/include/
LDFLAGS=-L ../lib/cjson/lib/ -lcjson 
LDFLAGS+=-L /usr/local/mysql/lib/ -lmysqlclient
LDFLAGS+=-lpthread  

cc=gcc

all: server 

server:
	$(cc)  $(SrcFile) -o thread_server $(CFLAGS) $(LDFLAGS)
